package cn.tedu.smart.parcel.counter.dao.persist.repository.impl;

import cn.tedu.smart.parcel.counter.dao.persist.mapper.CabinetMapper;
import cn.tedu.smart.parcel.counter.dao.persist.repository.ICabinetRepository;
import cn.tedu.smart.parcel.counter.pojo.entity.Cabinet;
import cn.tedu.smart.parcel.counter.pojo.vo.CabinetStandardVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class CabinetRepositoryImpl implements ICabinetRepository {

    @Autowired
    private CabinetMapper cabinetMapper;


    @Override
    public int insert(Cabinet cabinet) {
        return cabinetMapper.insert(cabinet);
    }

    @Override
    public CabinetStandardVO getStandardById(Long id) {
        return cabinetMapper.getStandardById(id);
    }
}
